package com.yang.designmode.ActionMode.state;

public class ConcreteStateB implements State {
    @Override
    public void handle(Context context) {
        System.out.println("当前状态为 B，执行操作...");
        context.setState(new ConcreteStateA());
    }
}